#include <iostream>

using namespace std;

const int N = 100010;

int n;
int a[N], t[N];

int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);

    cin >> n;
    for (int i = 1; i <= n; i ++ )
    {
        cin >> a[i];
        t[a[i]] ++ ;
    }

    int r = 0;
    for (int i = 1; i < N; i ++ )
    {
        if (!t[i]) continue;
        r = max(0, r - t[i]);
        r += t[i];
    }
    cout << r << endl;

    return 0;
}
